package com.hc.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.hc.domain.Category;
import com.hc.query.ProductCategoryCondition;
import com.hc.res.CategoryItem;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author hecai
 */
@Mapper
public interface CategoryMapper extends BaseMapper<Category> {

    /**
     * 根据条件查询商品类别
     *
     * @param condition
     * @return
     */
    IPage<CategoryItem> selectListByCondition(IPage<CategoryItem> page, @Param("condition") ProductCategoryCondition condition);
}